package org.example.gradleadmin.feigns.service;

import org.example.gradleadmin.feigns.fallback.GradleOrderFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "gradle-order", fallbackFactory = GradleOrderFallbackFactory.class)
public interface GradleOrderFeignClient {

	@GetMapping("/service/order/rpc/buy")
	boolean buy(@RequestParam("userId") String userId);

	@GetMapping("/service/order/rpc/buy2")
	boolean buy2(@RequestParam("userId") String userId);
}